- @title = 'Dashboard'
- @body_classes = 'dashboard'
- css 'dashboard'

#main
  .announcement.grid_4
    - @announcement = Announcement.last
    %h3= @announcement.title
    %p
      = truncate(@announcement.body, :length => 200)
      = link_to 'More', @announcement
  
  .module.subordinates.grid_12
    %h2.module_title Subordinates
    %table.module_content
      %thead
        %tr
          %th.name Name
          %th.email Email
          %th.organization Organization
          %th.employment Employment
          %th.status Status
      %tbody
        - @subordinates.each do |subordinate|
          %tr[subordinate]
            %td.name= [subordinate.first_name, subordinate.last_name].join(' ')
            %td.email= subordinate.email
            %td.organization= subordinate.organization.name
            %td.employment= subordinate.employment.name
            %td.status= subordinate.status.name